/**
 * 
 */
package com.cipe.cmrs.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cipe.cmrs.dao.BaseDao;
import com.cipe.cmrs.dao.BaseRefDao;
import com.cipe.cmrs.model.DashBoardLink;

/**
 * @author Krishna
 * 
 */
@Service
public class DashBoardService extends BaseService<DashBoardLink> {
	public List<DashBoardLink> getAllDashboarBoardLinks() {
		return this.dao.getResultList("SELECT c FROM DashBoardLink c");
	}

	public List<DashBoardLink> getFilterDashboardLinks(String prc,
			Integer projectAsignId, Integer projectReagionId) {
		return this.dao.getResultListWithNativeQuery(prc, DashBoardLink.class,
				projectAsignId, projectReagionId);
	}

	public List<DashBoardLink> getPaymentLinks(String prc,
			Integer paymentAssingId) {
		return this.dao.getResultListWithNativeQuery(prc, DashBoardLink.class,
				paymentAssingId);
	}

	public List<DashBoardLink> getDonorLinks() {
		return this.dao.getResultListWithNativeQuery("get_donorAward_count()",
				DashBoardLink.class);
	}

}
